package main

import (
	"fmt"
	"golang_learn/day5/example5/myStruct5"
	"encoding/json"
)

type integer int

func main() {
	testTag()
}

func testTag() {
	var stu myStruct5.Student = myStruct5.Student{
		Name:"stu01",
		Age:18,
		Score:89,
	}
	data,err := json.Marshal(stu)

	if err != nil {
		fmt.Println("json encode stu failed,err:",err)
		return
	}
	fmt.Println(string(data))
}

func test() {
	var i integer = 1000
	fmt.Println(i)
	var j int = 100
	fmt.Println(j)
	j = int(i)
	fmt.Println(j)
}